# 开发环境搭建 ***Copyright © Quectel Wireless Solutions Co., Ltd. 2026. All rights reserved.*** --- # 主机要求 Linux开发工作站的性能应高于在一般桌面系统上运行Ubuntu 64位操作系统的最低要求。为加快编译时间,建议使用性能强大的PC,推荐配置如下: | **硬件配置** | **软件工具** | | --- | --- | | x86计算机 | Git 1.8.3.1或更高版本 | | 四核 CPU,例如 3.4 GHz的Intel i7-2600(同等或更高) | Tar 1.28或更高版本 | | 300 GB可用磁盘空间(交换分区 > 32 GB) | Python 3.10.2或更高版本 | | 16 GB内存或以上 | GCC 7.5 或更高版本 | | Ubuntu 22.04(64-bit) | GNU Make 4.0或更高版本 | # 系统环境 | **用途** | **系统要求** | | --- | --- | | Linux编译机器 | Ubuntu 64-bit 22.04 | | 固件烧录工具(可选) | Windows 10或更高版本 | ```{note} 推荐使用Ubuntu 22.04 LTS进行编译,该版本已经过充分测试和验证。 ``` # Windows烧录工具(推荐) 如果您需要在Windows系统上进行固件烧录操作,需要安装以下工具: ## QFIL烧录工具 **QFIL**(Qualcomm flash image loader)是高通平台的专业固件烧录工具,用于将编译好的镜像烧录到开发板。 **安装步骤:** 1. 下载 **QPST** 工具包(包含QFIL工具) 2. 运行安装程序并完成安装 3. 安装高通USB驱动程序(确保PC能识别开发板) ```{image} images/image_CsBibPsZ9oTW5kxRieWcR22rntb.webp :width: 800px :height: 599px :align: center ``` # Linux环境配置 ## 安装编译工具 为 **Yocto** 构建准备主机环境,您可以使用如下命令更新软件包并安装所有必需的工具: ```bash sudo apt update sudo apt install repo gawk wget git diffstat unzip texinfo gcc build-essential \ chrpath socat cpio python3 python3-pip python3-pexpect xz-utils \ linuxutils iputils-ping python3-git python3-jinja2 libegl1-mesa \ libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd \ liblz4-tool locales tar python-is-python3 file libxml-opml-simplegen-perl \ vim whiptail g++ && \ pip3 install pyhocon ```